    <!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <th:block th:if="${type}==2">
    <div class="m-l-md m-r-md">
        <section class="m-t-md">
            <div class="row">
                <th:block th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="question : ${dataMap['list']}">
                    <section class="col-md-4 col-sm-6">
                        <div class="panel panel-default J_V-panel">
                            <div class="panel-heading" style="height: auto;">
                                <section class="clearfix">
                                    <aside class="pull-left">
                                        <i class="fa fa-question-circle" style="color: #d5dff5;font-size: 38px;"></i>
                                    </aside>
                                    <aside class="pull-left m-l-sm" style="width: 80%;height: 50px;overflow: hidden">
                                        <h4 th:attr="title=${#strings.abbreviate(question['context'],35)}">
                                            <strong class="c-000 fs14b txtOf" th:text="${#strings.abbreviate(question['context'],35)}">付费提问一下看看问题显示吗</strong>
                                        </h4>
                                    </aside>
                                </section>
                            </div>
                            <div class="panel-body">
                                <h5>三方收益分成比</h5>
                                <section class="row text-center">
                                    <section class="col-sm-4">
                                        <div class="m-t-sm" data-toggle="tooltip" data-placement="top" data-original-title="平台收益">
                                            <span class="fs12 c-999">平台</span>
                                            <p class="m-t-sm">
                                                <strong class="fs20 c-000" th:text="'￥'+(${question['earnings']}!=null?${question['earnings']['2']}:'0')">￥256</strong>
                                            </p>
                                        </div>
                                    </section>
                                    <section class="col-sm-4">
                                        <div class="m-t-sm" data-toggle="tooltip" data-placement="top" data-original-title="问答专家收益">
                                            <span class="fs12 c-999" th:if="${question['teacherMap']}!=null" th:text="${question['teacherMap']['teacherName']}">testTeacherLmx</span>
                                            <p class="m-t-sm">
                                                <strong class="fs20 c-000"  th:text="'￥'+(${question['earnings']}!=null?${question['earnings']['2']}:'0')">￥563</strong>
                                            </p>
                                        </div>
                                    </section>
                                    <section class="col-sm-4">
                                        <div class="m-t-sm" data-toggle="tooltip" data-placement="top" data-original-title="提问者收益">
                                            <span class="fs12 c-999" th:text="${question['user']['nickname']}">Theone丿</span>
                                            <p class="m-t-sm">
                                                <strong class="fs20 c-000" th:text="'￥'+(${question['earnings']}!=null?${question['earnings']['3']}:'0')">￥59622</strong>
                                            </p>
                                        </div>
                                    </section>
                                </section>
                                <section class="m-t-md text-center">
                                    <button type="button" class="btn btn-outline btn-primary btn-w-m openInfo" th:attrappend="data-id=${question['id']}"> 查看详细 </button>
                                </section>
                            </div>
                        </div>
                    </section>
                </th:block>
            </div>
        </section>
    </div>
    </th:block>
    <th:block th:if="${type}==1">
     <table class="table table-bordered">
        <thead>
            <tr>
                <th class="text-center"><div class="table-first-id">ID</div></th>
                <th class="text-center" width="20%">收益来源（订单号）</th>
                <th class="text-center" width="10%">创建时间</th>
                <th class="text-center" width="15%">提问人</th>
                <th class="text-center" width="10%">收益人</th>
                <th class="text-center" width="7%">收益人身份</th>
                <th class="text-center" width="10%">分成金额</th>
                <th class="text-center" width="5%">状态</th>
            </tr>
        </thead>
    </table>
    </th:block>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody>
                <tr class="jqgfirstrow" role="row">
                    <th class="text-center"><div class="table-first-id">&nbsp;</div></th>

                    <th:block th:if="${type}==1">
                        <th class="text-center" width="20%">&nbsp;</th>
                        <th class="text-center" width="10%">&nbsp;</th>
                        <th class="text-center" width="15%">&nbsp;</th>
                        <th class="text-center" width="10%">&nbsp;</th>
                        <th class="text-center" width="7%">&nbsp;</th>
                        <th class="text-center" width="10%">&nbsp;</th>
                        <th class="text-center" width="5%">&nbsp;</th>
                    </th:block>

                </tr>
                <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                    <td colspan="7" class="text-center">
                        <div class="noDataTipsBox">
                            <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>

                        </div>
                    </td>
                </tr>
                <th:block th:if="${type}==1">
          <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="attendRecord : ${dataMap['list']}">
                <td class="text-center">
                    <div class="table-first-id">
                        <input type="checkbox" th:text="${attendRecord['id']}" class="i-checks"/>
                    </div>
                </td>
                <td class="text-center" th:text="${attendRecord['orderNo']}"></td>
                <td class="text-center" th:text="${#strings.substring(attendRecord['createTime'],0,16)}"></td>
                <td class="text-center" th:text="${attendRecord['user']}==null ? '—':${attendRecord['user']['nickname']}"></td>
                <td class="text-center" th:if="${attendRecord['userType']} == 1">—</td>
                <td class="text-center" th:if="${attendRecord['userType']} == 2 and ${attendRecord['receiptorMap']}!=null" th:text="${attendRecord['receiptorMap']['teacherName']}"></td>
                <td class="text-center" th:if="${attendRecord['userType']} == 3" th:text="${attendRecord['receiptorMap']['nickname']}"></td>
                <td class="text-center" >
                    <span th:if="${attendRecord['userType']} == 1">平台</span>
                    <span th:if="${attendRecord['userType']} == 2">教师</span>
                    <span th:if="${attendRecord['userType']} == 3">学员</span>
                </td>
                <td class="text-center" th:text="${attendRecord['amount']}"></td>
                <td class="text-center" th:if="${attendRecord['status']} == 1"><span class="label label-danger">未提现</span></td>
                <td class="text-center" th:if="${attendRecord['status']} == 2"><span class="label label-info">已提现</span></td>
            </tr>
             </th:block>
            </tbody>
        </table>
    </div>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>
</html>